package com.yinhe.music.yhmusic.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.yinhe.music.type.person.BannerInfo;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 何晓华 on 2017/9/28.
 */

public class RadioListInfo implements MultiItemEntity, Serializable {

    private int collectNum;
    private String createTime;
    private String image;
    private String intro;
    private int playNum;
    private int radioId;
    private String radioName;
    private int radioSongNum;
    private int userId;
    private int collectStatus;
    private String nickname;
    private int pageNum;
    private String updateTime;

    private List<RadioListInfo> radioList;
    private List<BannerInfo> bannerList;
    private List<RadioSongs> radioSongList;
    private UserInfo userInfo;


    public RadioListInfo(int pageNum, List<RadioListInfo> radioList) {
        this.pageNum = pageNum;
        this.radioList = radioList;
    }

    public List<RadioSongs> getRadioSongList() {
        return radioSongList;
    }

    public void setRadioSongList(List<RadioSongs> radioSongList) {
        this.radioSongList = radioSongList;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public int getCollectStatus() {
        return collectStatus;
    }

    public void setCollectStatus(int collectStatus) {
        this.collectStatus = collectStatus;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public List<BannerInfo> getBannerList() {
        return bannerList;
    }

    public void setBannerList(List<BannerInfo> bannerList) {
        this.bannerList = bannerList;
    }

    public List<RadioListInfo> getRadioList() {
        return radioList;
    }

    public void setRadioList(List<RadioListInfo> radioList) {
        this.radioList = radioList;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(int collectNum) {
        this.collectNum = collectNum;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getRadioSongNum() {
        return radioSongNum;
    }

    public void setRadioSongNum(int radioSongNum) {
        this.radioSongNum = radioSongNum;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    private int itemType;

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getPlayNum() {
        return playNum;
    }

    public void setPlayNum(int playNum) {
        this.playNum = playNum;
    }

    public int getRadioId() {
        return radioId;
    }

    public void setRadioId(int radioId) {
        this.radioId = radioId;
    }

    public String getRadioName() {
        return radioName;
    }

    public void setRadioName(String radioName) {
        this.radioName = radioName;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    public static class RadioSongs implements Serializable {

        private String image;
        private String radioSongName;
        private int radioId;
        private int radioSongId;
        private int userId;
        private String nickname;
        private int commentNum;
        private int playNum;
        private String createTime;

        public int getCommentNum() {
            return commentNum;
        }

        public void setCommentNum(int commentNum) {
            this.commentNum = commentNum;
        }

        public int getPlayNum() {
            return playNum;
        }

        public void setPlayNum(int playNum) {
            this.playNum = playNum;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUsername() {
            return nickname;
        }

        public void setUsername(String username) {
            this.nickname = username;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getName() {
            return radioSongName;
        }

        public void setName(String name) {
            this.radioSongName = name;
        }

        public int getRadioid() {
            return radioId;
        }

        public void setRadioid(int radioid) {
            this.radioId = radioid;
        }

        public int getRadiosongid() {
            return radioSongId;
        }

        public void setRadiosongid(int radiosongid) {
            this.radioSongId = radiosongid;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public RadioSongs(Music music) {
            this.radioSongName = music.getSongName();
            this.radioSongId = (int) music.getSongId();
            this.nickname = music.getSingerName();
            this.image = music.getImage();
        }
    }
}
